package com.zhonghan.common.enums;

/**
 * 结果状态枚举类
 * @author zhangceven
 *
 */
public enum ResultStatus {
	
	BUSYNESS("-1","系统繁忙,请稍后再试"),
	FAILURE("0","失败"),
	SUCCESS("1","成功");
	
	
	private String code; // 自定义编码
	
	private String description; // 描述
	
	/**
	 * 枚举构造方法
	 * @param code
	 * @param description
	 */
	private ResultStatus(String code, String description) {
		this.code = code;
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	
	
	
}
